import styled from 'styled-components';

export const Wrapper = styled.div`
  width: 800px;
  margin: 20px auto;
`

export const CourseItemWrapper = styled.div`
  padding: 0px 30px;
  border-radius: 5px;
  background-color: #fff;
`

export const CourseTitle = styled.h3`
  font-size: 20px;
  line-height: 50px;
  font-weight: bold;
  color: #445;
`

export const CourseImgWrapper = styled.div`
  width: 100%;
  padding-bottom: 20px;
  margin-bottom: 10px;
  img {
    width: 330px;
    height: 198px;
    border-radius: 6px;
    float: left;
    margin-right: 20px;
  }
`

export const ItemWrapper = styled.div`
  line-height: 28px;
  font-size: 14px;
  color: #333;
  font-weight: normal;
  .price {
    font-size: 25px;
    color: #8BCA31;
  }
  .rate {
    margin-right: 10px;
    color: #8BCA31;
  }
`

export const CourseListWrapper = styled.div`
  width: 100%;
  background: #fff;
  /* margin: 10px auto; */
  .catalog {
    border-bottom: 1px solid #ccc;
    line-height: 40px;
    text-indent: 20px;
    font-size: 16px;
  }
  ul {
    li {
      line-height: 52px;
      font-size: 16px;
      display: flex;
      padding: 0 20px;
      color: #333;
      position: relative;
      .sort {
        font-weight: bold;
        margin-right: 10px;
      }
      p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-right: 40px;
      }
      .courseName{
        margin-right: 20px;
      }
      .play{
        line-height: 52px;
        position: absolute;
        right: 30px;
      }
    }
  }
`